package com.dogstudio.popstart.app;

import android.app.Application;

import com.dogstudio.popstart.config.Config;
import com.dogstudio.popstart.utils.AppUtils;
import com.dogstudio.popstart.utils.LogUtils;


public class GameApp extends Application {
    private static GameApp app;

    public static GameApp getInstance() {
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        initConfig();
    }

    private void initConfig() {
        Config.initMap();
        Config.SCREEN_WIDTH = AppUtils.getScreenWidth(getApplicationContext());
        LogUtils.e("SCREEN_WIDTH:" + Config.SCREEN_WIDTH);

    }

}
